package com.bizmerce.ebms.exception;

import java.io.Serializable;

public class EBMSBusinessProcessException extends Exception implements Serializable {
	private String exceptionKeyGroupCD; // Exception Group Code
	private String exceptionKeyCD; // Exception Key Code
	private Throwable exception; // Throwable exception 占쏙옙乍占�
	private String ebmsArg[];
	private String exceptionMessage;

	public EBMSBusinessProcessException(String exceptionKeyGroupCD, String exceptionKeyCD) {
		this.exceptionKeyGroupCD = exceptionKeyGroupCD;
		this.exceptionKeyCD = exceptionKeyCD;
	}

	public EBMSBusinessProcessException(String exceptionKeyGroupCD, String exceptionKeyCD, Throwable exception) {
		this(exceptionKeyGroupCD, exceptionKeyCD);
		this.exception = exception;
	}

	public EBMSBusinessProcessException(String exceptionKeyGroupCD, String exceptionKeyCD, Throwable exception,
			String ebmsArg[]) {
		this(exceptionKeyGroupCD, exceptionKeyCD, exception);
		this.ebmsArg = ebmsArg;
	}

	public EBMSBusinessProcessException(String exceptionKeyGroupCD, String exceptionKeyCD, Throwable exception,
			String ebmsArg[], String exceptionMessage) {
		this(exceptionKeyGroupCD, exceptionKeyCD, exception, ebmsArg);
		this.exceptionMessage = exceptionMessage;
	}

	public String getExceptionKeyGroupCD() {
		return exceptionKeyGroupCD;
	}

	public String getExceptionKeyCD() {
		return exceptionKeyCD;
	}

	public String getExceptionMessage() {
		return exceptionMessage;
	}

	public Throwable getException() {
		return exception;
	}

	public String[] getEbmsArg() {
		return ebmsArg;
	}
}
